/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package alpes.aerolinea.entities;

import java.util.ArrayList;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;

/**
 *
 * @author Daniel
 */
@Entity
@NamedQueries(@NamedQuery(name = "ServicioVideoSeries.findAll", query = "select o from ServicioVideoSeries o"))
public class ServicioVideoSeries extends ServiciosVideo implements Serializable {

    @Id
    @Column(name = "id_serie")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_ID_SERIE")
    @SequenceGenerator(name = "SEQ_ID_SERIE", allocationSize = 1, sequenceName = "exp_series_seq")
    private Long idSeries;

    public void setPrecio(int precio) {
        this.precio = precio;
    }
    private int precio;
    private String nombreSerie;
    private String imagen;
    //private ArrayList<TemporadaSerie> temporadas;
    private String identification;

    public ServicioVideoSeries(int precio, String nombreSerie, String imagen, String id) {
        this.precio = precio;
        this.nombreSerie = nombreSerie;
        this.imagen = imagen;
        //this.temporadas = new ArrayList<TemporadaSerie>();
        this.identification = id;
    }

    public ServicioVideoSeries() {
    }

    public ArrayList<TemporadaSerie> getTemporadas() {
        //return temporadas;
        return null;
    }

    public void setTemporadas(ArrayList<TemporadaSerie> temporadas) {
        //this.temporadas = temporadas;
    }

    public String getImagen() {
        return imagen;
    }

    public void setImagen(String imagen) {
        this.imagen = imagen;
    }

    public String getNombreSerie() {

        return nombreSerie;
    }

    public void setNombreSerie(String nombreSerie) {
        this.nombreSerie = nombreSerie;
    }

    @Override
    public int getPrecio() {
        return precio;
    }

    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    public Long getId() {
        return idSeries;    
    }

    public void setId(Long id) {
        idSeries = id;

    }
}
